import { SET_PREFERENCES_COMMONS } from '../../constants/ActionTypes';

const defaultState = {
  imageSync: 'position',
  showPatientInfo: true,
  showCornerInfo: true,
  showAnno: true,
  showRefLine: true,
};

const commons = (state = defaultState, action) => {
  switch (action.type) {
    case SET_PREFERENCES_COMMONS: {
      return { ...state, ...action.state };
    }
    default:
      return state;
  }
};

export { defaultState };

export default commons;
